package com.niit.mall.product.domain.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @BelongsProject: pardo_mall_backend
 * @BelongsPackage: com.niit.mall.product.domain.po
 * @Author: ChuXuan
 * @CreateTime: 2025-06-20  17:15
 * @Description: TODO
 * @Version: 1.0
 */
@Data
@AllArgsConstructor(staticName = "of")
@NoArgsConstructor
@TableName(value = "tb_coupon")
public class Coupon implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 数据库表主键ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 产品ID 0为通用优惠券
     */
    private Long productId;

    /**
     * 名称
     */
    private String name;
    /**
     * 描述
     */
    private String description;
    /**
     * 条件
     */
    private Integer condition;
    /**
     * 功能
     */
    private Integer function;
    /**
     * 数量
     */
    private Integer quantity;
    /**
     * 开始时间
     */
    private LocalDateTime startTime;
    /**
     * 结束时间
     */
    private LocalDateTime endTime;
    /**
     * 删除标记，用于标识数据是否已被逻辑删除。
     */
    @TableLogic
    private Integer isDeleted;




}
